/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTHoSoDatChoBLL;
import edu.nii.qlks.DataTransferObject.CTHoSoDatChoInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTHoSoDatChoControl {
    CTHoSoDatChoBLL CTHoSoDatCho = new CTHoSoDatChoBLL();
    
    public ArrayList LayDS() throws Exception{
        return CTHoSoDatCho.LayDS();
    }
        
    public void Insert(CTHoSoDatChoInfo cTHoSoDatChoInfo) throws Exception{
        CTHoSoDatCho.Insert(cTHoSoDatChoInfo);
    }
    
    public void Update(CTHoSoDatChoInfo cTHoSoDatChoInfo) throws Exception{
        CTHoSoDatCho.Update(cTHoSoDatChoInfo);
    }
    
    public void Delete(CTHoSoDatChoInfo cTHoSoDatChoInfo) throws Exception{
        CTHoSoDatCho.Delete(cTHoSoDatChoInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return CTHoSoDatCho.TaoMaTuDong(maGoc, batDau);
     }
}
